package com.zq.api.product;

import com.zq.api.util.FeignInterceptorAddHelper;
import com.zq.common.util.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author 张乔
 * @Date 2025/2/16 21:58
 */
@FeignClient(value = "sa-product",
        configuration = FeignInterceptorAddHelper.class)       // 请求拦截器 （关键代码)
public interface ProductFeignClient {

    @GetMapping("/product/productSku/getBySkuId/{id}")
    Result<Object> getBySkuId(@PathVariable("id") Long id);

    @GetMapping("/product/productSku/getHello/{id}")
   String getHello(@PathVariable("id") Long id);

}
